<?php
/**
 * @copyright 2011
 * @version $Id$
 * @access public
 * @author Oriotiori

 */

class Default_Model_ExceptionHandler extends Zend_Db_Table_Abstract{
    


    public function saveErrors($error= array()){
        
        $data=array(
            'File' => $error[0],
            'Error' => $error[1]
        );
        
        try{
            
            $this->getAdapter()->insert('exceptions', $data);
        }
        catch (Exception $e){
            //throw new Exception($e->getMessage());
        }
        return true;
    }

}

